package com.rapid.auth.service.impl;

import com.rapid.auth.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.stereotype.Service;

/**
 * @author zxh
 * @Title: UserDetailServiceImpl
 * @ProjectName rapid-auth
 * @Description: TODO
 * @date 2019/3/2017:04
 */

public class UserDetailsServiceImpl implements UserDetailsService {

    private SysUserService sysUserService;

    @Override
    public UserDetails loadUserByUsername(String username) {
        UserDetails sysUser=sysUserService.findByName(username);
        return sysUser;
    }
}
